package com.happy.lxx;

import android.app.*;
import android.os.*;
import android.widget.*;
import android.view.*;
import android.text.*;

public class MainActivity extends Activity 
{
	
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
	
	public void btn(View v){
		EditText e=(EditText) findViewById(R.id.mainEditText1);
		String s=e.getText().toString();
		if(s.contains("哆啦") || s.contains("蓝胖")){//1542124800
			show();
		}else{
			Toast.makeText(this,"不对哟，再猜猜看？",Toast.LENGTH_SHORT).show();
		}
	}
	public void show(){
		LinearLayout ll=(LinearLayout) findViewById(R.id.mainLinearLayout_Gift);
		ll.setVisibility(ll.VISIBLE);
		Toast.makeText(this,"猜对啦！",Toast.LENGTH_SHORT).show();
	}
}
